package com.ljl.test;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.entity.Orderdetail;
import com.service.ljl.orderdetailservice;


public class orderdetailetest {
	private orderdetailservice orderdetailservice;
	@Before
	public void init() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		orderdetailservice=ac.getBean(orderdetailservice.class);
	}
	@After
	public void tearDown() {
		orderdetailservice=null;
	}
	
	@Test
	public void add() {
		Orderdetail orderdetail=new Orderdetail();
		orderdetailservice.add(orderdetail);
	}

}
